<SCRIPT LANGUAGE="JavaScript">
<!--
function getProviderCode(){
    var treewin=window.top.document.frames("lefttree");
    var treeItem= treewin.f_getCurItem();
    var code=treeItem.provider_code;
    return code;
}
function getProviderName(){
    var treewin=window.top.document.frames("lefttree");
    var treeItem= treewin.f_getCurItem();
    var name=treeItem.provider_name;
    return name;
}

function f_initOther(){    	
    var treewin=window.top.document.frames("lefttree");
    var treeItem= treewin.f_getCurItem();
	var id=treeItem.keyid;
	var code=treeItem.provider_code;
	var codelen=treeItem.provider_code.length;
    var name=(treeItem.nodeName).substring(codelen);
	document.all("base_train_bill.provider_id").value = id;
	document.all('base_train_bill.provider_code').value = code;
	document.all('base_train_bill.provider_name').value = name;
    //document.all("base_train_bill.bill_date").value = getToday();
}

-->
</SCRIPT>